<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Role extends Model
{
    //

    /**
     * 拥有此角色的用户
     */
    public function admins()
    {
        return $this->belongsToMany('App\Admin','admin_roles','role_id','admin_id');
    }
}
